<?php
namespace Common\Model;
use Think\Model\RelationModel;
class ArticleModel extends BaseModel{
	protected $_link = array(
	    // 'user' =>  self::HAS_ONE,
	    'user' =>  array(
	    	'mapping_type'      => self::BELONGS_TO,
	    	'foreign_key'       => 'user_id',
	    	),
	    // 'user_in_times' => self::HAS_MANY,
     );
}